package com.kayt.cyberBar.company.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;


/**
 * The persistent class for the b_company_activity_rebate database table.
 * 
 */
@Entity
@Table(name="b_company_activity_rebate")
@NamedQuery(name="BCompanyActivityRebate.findAll", query="SELECT b FROM BCompanyActivityRebate b")
public class BCompanyActivityRebate implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String activityCode;
	private String code;
	private String createTime;
	private String des;
	private String endTime;
	private String name;
	private String startTime;
	private String statusCode;
	private String updateTime;
	
	private List<BCompanyActivityRebateItem> itemList = new ArrayList<>();

	public BCompanyActivityRebate() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	@Column(name="ACTIVITY_CODE")
	public String getActivityCode() {
		return this.activityCode;
	}

	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}


	@Column(name="END_TIME")
	public String getEndTime() {
		return this.endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	@Column(name="START_TIME")
	public String getStartTime() {
		return this.startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BCompanyActivityRebateItem.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "rebate")
	public List<BCompanyActivityRebateItem> getItemList() {
		return itemList;
	}


	public void setItemList(List<BCompanyActivityRebateItem> itemList) {
		this.itemList = itemList;
	}

}